<?php

require_once "core/application/models/mgmshop/mgmshop11.php";

class Mgmshop12 extends Mgmshop11 {

    private $_query;

    protected function addItem($itemUniqueId, $item, $playerId, $count) {
        /**
         * 
         * @param int $itemUniqueId
         * @param int $item
         * @param int $playerId
         */
        DB::getInstance()->openConnectionToGS();
        $this->_query = "INSERT INTO `inventory` (`itemUniqueId`, `itemId`, `itemCount`, `itemOwner`, `itemLocation`, `itemSkin`)   VALUES ('{$itemUniqueId}', '{$item}', '{$count}', '{$playerId}', '127', '{$item}')";
        return DB::getInstance()->sql($this->_query);
        DB::getInstance()->closeConnection();
        unset($this->_query);
    }

}

?>